package com.woniuxy.service.impl;

import com.woniuxy.dao.UserDao;
import com.woniuxy.entity.User;
import com.woniuxy.service.UserService;


public class UserServiceImpl implements UserService {
    UserDao userDao;

    public void setUserDao(UserDao userDao) {
        this.userDao = userDao;
    }

    @Override
    public User findById(int id) {
        return userDao.findById(id);
    }

    @Override
    public boolean deleteByid(int id) {
        return userDao.deleteByid(id);
    }

    @Override
    public boolean insert(int id, String account, String password, String role, String status) {
        return userDao.insert(id, account, password, role, status);
    }

    @Override
    public boolean update(int id, String account) {
        return userDao.update(id, account);
    }


}
